import request from '@/router/axios';
import { baseUrl } from '@/config/env';
// 用户列预约记录列表
export const userList=(current,size,params)=>{
    return  request({
        url: baseUrl + '/v1/pc/script/userScriptReservationRecord/list/',
        method: 'get',
        params: {
            ...params,
            current,
            size
        }
    });
};
//新增用户列表
export const adduserList = (data) => request({
    url: baseUrl + '/v1/pc/script/userScriptReservationRecord/add/',
    method: 'POST',
    data
})
// //获取用户详情
export const getList = (id) => request({
    url: baseUrl + `/v1/pc/script/userScriptReservationRecord/get/${id}/`,
    method: 'get',
})
// //更新用户
export const updateuserList = (id,data) => request({
    url: baseUrl + `/v1/pc/script/userScriptReservationRecord/update/${id}/`,
    method: 'PATCH',
    data
})
// //删除用户
export const deleteuserList = (ids) => request({
    url: baseUrl + `/v1/pc/script/userScriptReservationRecord/delete/`,
    method: 'post',
    data:{
        ids
    }
})